package cn.edu.scau.cmi.limingben.composite.model.Safe_model;

import java.util.LinkedList;
import java.util.List;

public class Organization extends Member {
	private List<Member> children;

	public Organization(Member father, String name) {
		super(father, name);
		children = new LinkedList<>();
	}

	public List<Member> getChildren() {
		return children;
	}
	public void addChild(Member child) {
		children.add(child);
	}
	public void removeChild(Member child) {
		children.remove(child);
	}
}
